package application.snakes;

import application.GameManager;
import application.GameMatrix;

public class SnakeFactory {

	public static Snake create(String snake, GameMatrix matrix,GameManager gameManager) {
		Snake ans = null;
		if(snake.equals("predator"))
			ans = new Predator(matrix,gameManager);
		else if(snake.equals("ornamental"))
			ans = new Ornamental(matrix,gameManager);
		else if(snake.equals("iceage"))
			ans = new IceAgeSnake(matrix,gameManager);
		return ans;
	}

}
